package com.liang.jiekou.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liang.jiekou.entity.result.INVMBL;
import com.liang.jiekou.mapper.INVMLMapper;
import com.liang.jiekou.service.INVMLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;


@Service
@Transactional
public class INVMLServiceImpl implements INVMLService {


    @Resource
    INVMLMapper invmlMapper;


//    @Override
//     public List<Map<String,Object>> selectKUCUN(String ML001, String ML002) {
//        //将查询的结果返回
//        List<Map<String,Object>> invml = invmlMapper.selectKUCUN(ML001,ML002);
//        //如果为空则返回一个空集合
//        if(invml == null ){
//            return new ArrayList<>();
//        }
//
//   return invml;
//    }

    @Override
    public IPage<INVMBL> selectINVMBLall(Page<INVMBL> page, String ML001, String ML002) {

        return invmlMapper.selectKUCUN(page, ML001, ML002);
    }
}
